import {Component} from 'react'
import './app.scss'
import {request} from "./utils/request";
import {apis} from "./constants/apis";
import globalData from "./global_data";
import Taro from "@tarojs/taro";

class App extends Component<any, any> {

  componentDidMount() {
    Taro.login({
      success: (res) => {
        if (res.code) {
          globalData.code = res.code;
        }
      }
    })
  }

  componentDidShow() {
  }

  componentDidHide() {
  }

  // this.props.children 是将要会渲染的页面
  render() {
    return this.props.children
  }
}

export default App
